import React from 'react';
import styled from 'styled-components';

// 封装一个页头标签
const Pageheader = (props) => {
    return (
        <Pageheade>
            {/* 页头标题 */}
            <h2>{props.title}</h2>
            {/* 插槽留的槽 */}
            {props.children}
        </Pageheade>
    );
}
let Pageheade = styled.div`
    width: 100%;
    height: 74px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border:1px solid rgb(235, 237, 240);
    padding: 0 20px ;
`

export default Pageheader;
